package dj.MyNote;

import android.app.Activity;
import android.content.Intent;
import android.widget.Button;
import android.view.View;
import android.view.View.OnClickListener;
import android.os.Bundle;

public class MyNoteMain extends Activity {
	Button beginButton = null;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        System.out.println("dj---  MyNoteMain.onCreate");
        setContentView(R.layout.main);

        
        beginButton = (Button)findViewById(R.id.beginButton);
        beginButton.setOnClickListener(new MyButtonListener());
    } 
    
    
    
    @Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		super.onDestroy();
	}



	class MyButtonListener implements OnClickListener{

		public void onClick(View arg0) {
			// TODO Auto-generated method stub
			Intent intent = new Intent();
			intent.setClass(MyNoteMain.this, MyNoteListShow.class);
			MyNoteMain.this.startActivity(intent);
			MyNoteMain.this.finish();
		}
    	
    }
    
    
}